package com.pvj.myaccount.room.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.pvj.myaccount.room.entity.MonthCost

@Dao
interface MonthCostDao {
    @Query("SELECT * FROM MonthCost")
    suspend fun getAllAsync(): List<MonthCost>

    @Query("SELECT * FROM MonthCost")
    fun getAll(): List<MonthCost>

    @Insert
    fun insert(vararg monthCost: MonthCost)

    @Delete
    fun delete(monthCost: MonthCost)

    @Update
    fun update(monthCost: MonthCost)
}